package dyyx.data;

import java.util.Date;

public class Pet{
	
    private String name;
 
    private int age;
 
    private Date birthdate;
    
    private double weight= 0.1+0.2;
    
    private String info = null;
    
    // Pet pet = petobj.toJavaObject(Pet.class);
    // 需要默认构造函数
    public Pet(){
    	
    }
    
    
    
    public Pet(String name,int age,Date birthdate){
    	this.name=name;
    	this.age=age;
    	this.birthdate=birthdate;
    	
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}
    
    
    
    
	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	@Override
    public String toString(){
    	return name+","+age+","+birthdate+","+info;
    }
	
		
}